﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration.Provider;

namespace Bots.Index
{
    public abstract class IncIndexProvider : ProviderBase
    {

        /// <summary>
        /// Add Incremental index object to repository
        /// </summary>
        /// <param name="domainObject"></param>
        abstract public void IncIndexAdd(DomainObject domainObject);

        /// <summary>
        /// Add Incremental index objects to repository
        /// </summary>
        /// <param name="domainObjects"></param>
        abstract public void IncIndexAdd(DomainObject[] domainObjects);

        /// <summary>
        /// Fetch domainObjects from repository
        /// </summary>
        /// <param name="maxCount">max count every time</param>
        /// <returns></returns>
        abstract public List<DomainObject> FetchIncIndicex(int maxCount);

       
    }
}
